﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ServiceMonitor.Model
{
    // 封装 JarProcess 相关信息
    public class JarProcessInfo
    {
        /// <summary>
        /// 进程信息
        /// </summary>
        public Process Process { get; set; }
        /// <summary>
        /// 启动时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 错误信息缓存
        /// </summary>
        public StringBuilder ErrorBuffer { get; set; } = new StringBuilder();
        /// <summary>
        /// 最后一次错误摘要信息
        /// </summary>
        public string LastErrorSummary { get; set; }
        /// <summary>
        /// 最后一次错误行的时间戳信息
        /// </summary>
        public string LastLineTimestamp { get; set; } = "";
    }
}
